import request from '@/utils/request'

export function listJob(query) {
  return request({
    url: '/datax/job/list',
    method: 'get',
    params: query
  })
}

export function addJobConf(data) {
  return request({
    url: "/datax/job/conf",
    method: "post",
    data: data
  })
}

export function deleteJobConf(id) {
  return request({
    url: "/datax/job/conf/" + id,
    method: "delete"
  })
}

export function updateJobConf(data) {
  return request({
    url: "/datax/job/conf",
    method: "put",
    data: data
  })
}
